<template>
  <f7-page :page-content="false">
    <f7-navbar title="办公自动化">
      <f7-nav-right >
        <!--<f7-nav-right v-if="$theme.md">-->
        <f7-link icon-material="compare_arrows" @click="pageClose"></f7-link>
      </f7-nav-right>
    </f7-navbar>
    <f7-toolbar tabbar labels :bottom-md="isBottom">
      <f7-link tab-link="#tab-1" tab-link-active text="流程管理" icon-ios="f7:email_fill" icon-md="material:email"></f7-link>
      <f7-link tab-link="#tab-2" text="计划任务" icon-ios="f7:today_fill" icon-md="material:today"></f7-link>
    </f7-toolbar>
    <f7-tabs animated>
      <f7-tab id="tab-1" class="page-content" tab-active>
        <oa></oa>
      </f7-tab>
      <f7-tab id="tab-2" class="page-content">
        <schedule></schedule>
      </f7-tab>
    </f7-tabs>
  </f7-page>
</template>
<script>

import oa from './oa'
import schedule from './schedule'

export default {
  data () {
    return {
      isBottom: true
    }
  },
  components: {
    oa, schedule
  },
  methods : {
    pageClose : function () {
      WebViewJavascriptBridge.pageClose();
    }
  }
}
</script>
